<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>AdminLTE 2 | Starter</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="/stylesheets/bootstrap.min.css">


  <link rel="stylesheet" href="/stylesheets/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="/stylesheets/skins/skin-blue.min.css">

  <!-- Ionicons -->
  <link rel="stylesheet" href="/stylesheets/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/stylesheets/AdminLTE.min.css">
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->

  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->

<body class="hold-transition skin-blue sidebar-mini">
  <div class="wrapper">

    <!-- Main Header -->
    <%- include("./header.ejs") %>

    <!-- Left side column. contains the logo and sidebar -->
    <%- include("./aside.ejs") %>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <section class="content-header">
        <h1>商品信息管理</h1>
      </section>
      <!-- Main content -->
      <section class="content container-fluid">
        <div class="box box-info">
          <div class="box-header with-border">
            <h3 class="box-title">请修改商品信息</h3>
          </div>
          <!-- /.box-header -->
          <!-- form start -->
          <form class="form-horizontal" action="/pro/setAction" method="post">
            <div class="box-body">
              <div class="form-group">
                <label for="proId" class="col-sm-2 control-label">商品编号</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="proId" name="proId" value="<%= data.proId %>" readonly>
                </div>
              </div>
              <div class="form-group">
                <label for="brand" class="col-sm-2 control-label">品牌</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="brand" placeholder="品牌" name="brand" value="<%= data.brand %>">
                </div>
              </div>
              <div class="form-group">
                <label for="logo" class="col-sm-2 control-label">LOGO</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="logo" placeholder="logo" name="logo" value="<%= data.logo %>">
                </div>
              </div>
              <div class="form-group">
                <label for="kind" class="col-sm-2 control-label">分类</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="kind" placeholder="分类" name="kind" value="<%= data.kind %>">
                </div>
              </div>
              <div class="form-group">
                <label for="img" class="col-sm-2 control-label">图片</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="img" placeholder="图片" name="img" value="<%= data.img %>">
                </div>
              </div>
              <div class="form-group">
                <label for="proName" class="col-sm-2 control-label">名称</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="proName" placeholder="名称" name="proName" value="<%= data.proName %>">
                </div>
              </div>
              <div class="form-group">
                <label for="price" class="col-sm-2 control-label">价格</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="price" placeholder="价格" name="price" value="<%= data.price %>">
                </div>
              </div>
              <div class="form-group">
                <label for="sales" class="col-sm-2 control-label">销量</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="sales" placeholder="销量" name="sales" value="<%= data.sales %>">
                </div>
              </div>
              <div class="form-group">
                <label for="stock" class="col-sm-2 control-label">库存</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="stock" placeholder="库存" name="stock" value="<%= data.stock %>">
                </div>
              </div>
              <div class="form-group">
                <label for="discount" class="col-sm-2 control-label">折扣</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="discount" placeholder="折扣" name="discount"  value="<%= data.discount %>">
                </div>
              </div>
              <div class="form-group">
                <label for="tip" class="col-sm-2 control-label">评分</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="tip" placeholder="评分" name="tip"  value="<%= data.tip %>">
                </div>
              </div>
            </div>
            <!-- /.box-body -->
            <div class="box-footer">
              <a href="/pro" class="btn btn-default">取消</a>
              <button type="submit" class="btn btn-info pull-right">提交</button>
            </div>
            <!-- /.box-footer -->
          </form>
        </div>
      </section>
      <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <%- include("./footer.ejs") %>

  </div>
  <!-- ./wrapper -->

  <!-- jQuery 3 -->
  <script src="/javascripts/jquery.min.js"></script>
  <!-- Bootstrap 3.3.7 -->
  <script src="/javascripts/bootstrap.min.js"></script>
  <!-- AdminLTE App -->
  <script src="/javascripts/adminlte.min.js"></script>

</body>

</html>